<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>   
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<table cellspacing="5" cellpadding="5" width="600"> 
		<tr>
			<td bgcolor="#FAFAD2" align="center">문의분류</td><td>${qboarddetail.bq_category}</td><td bgcolor="#FAFAD2" align="center">조회수</td><td>${qboarddetail.bq_readcnt}</td>
		</tr>
		<tr height="4"></tr>
		<tr>
			<td bgcolor="#FAFAD2" align="center">제목</td><td colspan="3">${qboarddetail.bq_title}</td>
		</tr>
		<tr height="4"></tr>
		<tr> 
			<td bgcolor="#FAFAD2" align="center">작성자</td><td>${qboarddetail.userid}</td>
			<td bgcolor="#FAFAD2" align="center">답변여부</td><td>${qboarddetail.bq_status}</td>
		</tr>
		<tr height="4"></tr>
		<tr bgcolor="#e10380" height="2">  
			<td colspan="4"></td> 
		</tr>
		<tr height="4"></tr>
		<tr height="300">
			<td bgcolor="#FAFAD2" align="center">내용</td><td colspan="3">${qboarddetail.bq_content}</td>
		</tr>
		<tr>
			<td colspan="4" align="center">
				<c:if test="${qboarddetail.userid == userid}">
					<input type="button" value="수정" onclick="location.href='qboardupdate.do?bq_num=${qboarddetail.bq_num}'">
					<input type="button" value="삭제" onclick="location.href='qboarddelete.do?bq_num=${qboarddetail.bq_num}'">
				</c:if>
				<input type="button" value="취소" onclick="location.href='qboardlist.do'">
			</td>
		</tr>
	</table>
	<table width="600" style="margin-bottom: 50px;" rules="none">
			<c:forEach items="${list}" var="rep">
			<tr bgcolor="#FAFAD2">
				<td align="center"><b>관리자</b></td><td colspan="2">${rep.bqr_content}</td><td align="center">${rep.bqr_date}</td>
			</tr>	
			</c:forEach>
	</table>
</body>
</html>